Params_pre = defaultParamsPre();
Params_pre.usePCA = false;
Params_pre.elipse = true;
Params_pre.trustVolume = 1.0;
Params_pre.img2vecFnc = 'featuresPseudoZernike';
Params_pre.img2vecFncArgs = [2 7];

Params_nn = defaultParamsNN();
Params_nn.eg = 0.02;
Params_nn.display = 1000;

Persons = 2:40;
runFR(Params_pre, Params_nn, Persons);
writeNumberErrors(Persons)

%save
me = mfilename;
for nPersons=Persons;
    load(['./inputs/' int2str(nPersons) '/errors' int2str(nPersons) '.mat'],'errorsIn');
    toDir = [ './tests/' me '/' int2str(nPersons)];
    mkdir(toDir);
    save([ toDir '/errors' int2str(nPersons) '.mat'],'errorsIn');
end
